<?php
/* --------------------------------------------------------------
   gm_logo.php 2008-07-29 gambio
   Gambio OHG
   http://www.gambio.de
   Copyright (c) 2008 Gambio OHG
   Released under the GNU General Public License (Version 2)
   [http://www.gnu.org/licenses/gpl-2.0.html]
   --------------------------------------------------------------
*/
	defined('_VALID_XTC') or die('Direct Access to this location is not allowed.');
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
	<tr>
		<td valign="top" align="left" class="main">
			<strong><?php echo constant('MENU_TITLE_' . strtoupper($_GET['gm_logo'])); ?></strong> 
		</td>
	</tr>
</table>
<br />
	<table border="0" width="100%" cellspacing="0" cellpadding="2">
		<?php if(!empty($gm_message)) { ?>
		<tr>
			<td valign="top" align="left" class="main" colspan="2">
				<?php
					echo $gm_message . "<br /><br />";
				?>
			</td>
		</tr>
		<?php } ?>
		<?php if($gm_logo->logo_exist()) { ?>
		<tr>
			<td valign="top" align="left" class="main" colspan="2">
				<?php
					echo $gm_logo->get_logo();
				?>
			</td>
		</tr>
		<?php } ?>
		<tr>
			<td valign="top" align="left" class="main" colspan="2">
				&nbsp;			
			</td>
		</tr>
		<?php if($gm_logo->logo_exist()) { ?>
		<tr>
			<td valign="top" align="left" class="main" width="150">
				<?php echo GM_LOGO_DELETE; ?>
			</td>
			<td valign="top" align="left" class="main">
					<input type="checkbox" name="GM_LOGO_DELETE">
			</td>
		</tr>
		<?php } ?>
		<?php if($gm_logo->logo_exist() && $gm_logo->logo_key != 'gm_logo_overlay' && $gm_logo->logo_key != 'gm_logo_cat') { ?>
		<tr>
			<td valign="top" align="left" class="main" width="150">
				<?php echo GM_LOGO_USE; ?>
			</td>
			<td valign="top" align="left" class="main">
					<input type="checkbox" name="GM_LOGO_USE" <?php if($gm_logo->logo_use == '1') echo 'checked'; ?>>
			</td>
		</tr>
		<?php } ?>
		<tr>
			<td valign="top" align="left" class="main" width="150">
				<?php echo GM_LOGO_UPLOAD; ?>
			</td>
			<td valign="top" align="left" class="main">
				<input type="file" name="GM_LOGO">
			</td>
		</tr>
		<tr>
			<td valign="top" align="left" class="main" colspan="2">
				&nbsp;
			</td>
		</tr>
		<tr>
			<td valign="middle" align="left" class="main">				
				<input class="button" type="submit" name="gm_upload" value="<?php echo BUTTON_SAVE;?>">																									 
			</td>
			<td valign="middle" align="left" class="main">				
				<span id="gm_status" style="height:20px"></span>																									 
			</td>
		</tr>
	</table>